
/**
 *
 * @author Adam Dickinson
 */
public class testing {

    public static void main(String[] args) {
        try {
            UserMail test = new UserMail("tom");
            test.add(new Message("adam", "tom", "hey hey", "testing"));
            test.add(new Message("tom", "tom", "zomg", "working"));
            test.add(new Message("sally", "tom", "you what", "muwahaha"));
            test.add(new Message("lisa", "tom", "awesome", "stuff"));
            System.out.println("Message Count : " + test.size());
            test.save();
            
 
            
            
            
            UserMail test2 = UserMail.open("tom");
            System.out.println("Message Count : " + test.size());
            System.out.println(test2.find(0).toString());       
            
           
            
        } catch (Exception ex) {
              System.out.println("hello");
            System.err.println(ex.getMessage());
        }
    }
}
